﻿using Blog.Service.Interface;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;

namespace Blog.WebApi.Controllers.Blog
{
    /// <summary>
    /// 文章管理
    /// </summary>
    [Route("api/article")]
    [ApiController]
    public class ArticleController : BaseController
    {
        private readonly IArticleService _articleService;

        public ArticleController(IArticleService articleService)
        {
            this._articleService = articleService;
        }
        [HttpPost("query")]
        public async Task<ActionResult> Query(int id)
        {
            return Success(await _articleService.Query(id));
        }
    }
}
